import request from "@/utils/request.js"


export function addUser(finalobj){
    return request({
        method:"POST",
        url:"/userInfo",
        data:finalobj
    })
}
export function getUser(){
    return request.get("/userInfo")
}
export function modifedPicture(obj){
    return request({
        method:"PUT",
        url:"userInfo/"+obj.id,
        data:obj
    })
}
export function modifedPasswrold(newPassworld,userID){
    return request({
        method:"PATCH",
        url:"userInfo/"+userID,
        data:{"passworld":newPassworld}
    })
}